home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch13 / 13fig11.wrl < prev    next >
Text File  |  1996-09-23  |  720b  |  39 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material {
  8.             emissiveColor 1.0 1.0 1.0
  9.         }
  10.     }
  11.     geometry IndexedLineSet {
  12.         coord Coordinate {
  13.             point [
  14.             # Coordinates around the top of the cube
  15.                 -1.0  1.0  1.0,
  16.                  1.0  1.0  1.0,
  17.                  1.0  1.0 -1.0,
  18.                 -1.0  1.0 -1.0,
  19.             # Coordinates around the bottom of the cube
  20.                 -1.0 -1.0  1.0,
  21.                  1.0 -1.0  1.0,
  22.                  1.0 -1.0 -1.0,
  23.                 -1.0 -1.0 -1.0
  24.             ]
  25.         }
  26.         coordIndex [
  27.         # top
  28.             0, 1, 2, 3, 0, -1,
  29.         # bottom
  30.             4, 5, 6, 7, 4, -1,
  31.         # vertical edges
  32.             0, 4, -1,
  33.             1, 5, -1,
  34.             2, 6, -1,
  35.             3, 7
  36.         ]
  37.     }
  38. }
  39.